let Tool = {
    random: function (min, max) {
        return Math.floor(Math.random() * (max - min + 1) + min);
    },
    guid: function () {
        let arr = '0123456789abcdef'.split('');
        let len = 32;

        let guid = [];
        for (let i = 0; i < len; i++) {
            let index = Math.floor(Math.random() * arr.length)
            guid.push(arr[index]);
        }
        guid = guid.join('');
        return guid;
    }
};

export default Tool;